//
//  NetService.h
//  TheRicher
//
//  Created by 李晓东 on 2018/1/17.
//  Copyright © 2018年 PeanutXu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "NetResultDelegate.h"

typedef void (^NetQueryResult) (id);

@interface NetService : NSObject <NetResultDelegate>

@property (nonatomic, strong) id <NetResultDelegate>delegate;

+ (id)share;

/**
 从网络加载双色球记录

 @param issueno 期号,从这期开始(不包括这期)加载
 @param num 期数,加载多少条记录
 @param id 彩种(现默认是11,双色球)
 */
- (void)loadDataFromIssueno:(NSString *)issueno andNumOf:(NSInteger)num andID:(NSInteger)id andCallBlock:(NetQueryResult)netQueryResultBlock;

/**
 加载单条记录

 @param issueno 需要加载的期号
 @param id 彩种
 */
- (void)loadDataFromIssueno:(NSString *)issueno andID:(NSInteger)id andCallBlock:(NetQueryResult)netQueryResultBlock; // call on duty
@end
